Interacting with Stitch

The Stitch utility class and the rest of the protocols here provide functionality for interacting with a MongoDB Stitch application. None of these classes or protocols are meant to be instantiated directly. All interaction with Stitch begins at the level of the Stitch utility class.

  • Singleton class with static utility functions for initializing the MongoDB Stitch iOS SDK, and for retrieving a StitchAppClient.

    See more

    Declaration

    Swift

    public class Stitch
  • The fundamental set of methods for communicating with a MongoDB Stitch application. Contains methods for executing Stitch functions and retrieving clients for Stitch services, contains a StitchAuth object to manage the authentication state of the client, and contains a StitchPush object to register the current user for push notifications. An implementation can be instantiated using the Stitch utility class.

    See more

    Declaration

    Swift

    public protocol StitchAppClient
  • A protocol to be inherited by classes that need to take action whenever a particular StitchAppClient performs an authentication event. An instance of a StitchAuthDelegate must be registered with a StitchAuth for this to work correctly.

    See more

    Declaration

    Swift

    public protocol StitchAuthDelegate : AnyObject
  • StitchPush can be used to get clients that can register for push notifications via Stitch.

    See more

    Declaration

    Swift

    public protocol StitchPush
  • A protocol representing an identity that a Stitch user is linked to and can use to sign into their account.

    See more

    Declaration

    Swift

    public protocol StitchUserIdentity : Decodable, Encodable
  • StitchResult holds the result to an asynchronous operation performed against the Stitch server. When the operation was completed successfully, it holds the result of the operation. When the operation fails, it contains a StitchError object describing the reason for the failure.

    See more

    Declaration

    Swift

    public enum StitchResult<T>